package com.teatrace.model.process;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.teatrace.model.base.Device;
import com.teatrace.model.base.Employee;
import com.teatrace.model.produce.MaterialPackage;

@Entity
@Table(name = "killout_status", uniqueConstraints = { @UniqueConstraint(columnNames = {}) })
public class KilloutStatus {
	@Id
	@Column(name="killout_status_id")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private long id;
	
	private String color;
	private String shape;
	
	@Column(name = "water_content", nullable = true, unique = false, insertable = true, length = 255, updatable = true)
	private String watercontent;
	
	
	@Column(name = "p_content")
	private String pcontent;
	
	@Column(name = "k_content")
	private String kcontent;
	
	private String description;
	@Column(columnDefinition = "datetime")
	private Date time;
	
	//基于外键的一对一关系
	@ManyToOne
	@JoinColumn(name="material_package_id",unique=true,nullable=false)
	private MaterialPackage materialpackage;//
		
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}
	
	public String getWatercontent() {
		return watercontent;
	}

	public void setWatercontent(String watercontent) {
		this.watercontent = watercontent;
	}

	public String getPcontent() {
		return pcontent;
	}

	public void setPcontent(String pcontent) {
		this.pcontent = pcontent;
	}

	public String getKcontent() {
		return kcontent;
	}

	public void setKcontent(String kcontent) {
		this.kcontent = kcontent;
	}

	public String getShape() {
		return shape;
	}

	public void setShape(String shape) {
		this.shape = shape;
	}
	public MaterialPackage getMaterialpackage() {
		return materialpackage;
	}

	public void setMaterialpackage(MaterialPackage materialpackage) {
		this.materialpackage = materialpackage;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}
}
